package com.yc.cinema.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDate;

/**
 * <p>
 * 影院售票-电影信息表-5
 * </p>
 *
 * @author lyl
 * @since 2022-11-04
 */
@TableName("sp_movie")
public class SpMovie implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 编号: 自增列
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 电影名
     */
    private String name;

    /**
     * 片长: 单位:分钟
     */
    private Integer length;

    /**
     * 类型: 战争片, 科幻片 ...
     */
    private String type;

    /**
     * 上映日期: 上映开始日期
     */
    private LocalDate beginTime;

    /**
     * 下映日期: 上映结束日期
     */
    private LocalDate endTime;

    /**
     * 是否3D: 1:3D, 0:2D
     */
    private Integer is3d;

    /**
     * 影片介绍
     */
    private String intro;

    /**
     * 海报图片: 图片地址
     */
    private String image;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getLength() {
        return length;
    }

    public void setLength(Integer length) {
        this.length = length;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public LocalDate getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(LocalDate beginTime) {
        this.beginTime = beginTime;
    }

    public LocalDate getEndTime() {
        return endTime;
    }

    public void setEndTime(LocalDate endTime) {
        this.endTime = endTime;
    }

    public Integer getIs3d() {
        return is3d;
    }

    public void setIs3d(Integer is3d) {
        this.is3d = is3d;
    }

    public String getIntro() {
        return intro;
    }

    public void setIntro(String intro) {
        this.intro = intro;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    @Override
    public String toString() {
        return "SpMovie{" +
        "id=" + id +
        ", name=" + name +
        ", length=" + length +
        ", type=" + type +
        ", beginTime=" + beginTime +
        ", endTime=" + endTime +
        ", is3d=" + is3d +
        ", intro=" + intro +
        ", image=" + image +
        "}";
    }
}
